package Others.DesignPattern.ObserverPattern.Pattern.Object;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;

@Setter
@Getter
@AllArgsConstructor
public abstract class Secretary {

    public Set<Observer> observersList;
    public String message;

    public Secretary()
    {
        observersList = new HashSet<>();
    }

    public abstract void AddObserver(Observer observer);
    public abstract void DropObserver(Observer observer);
    public abstract void NotifyObserver();

}
